package com.jugheadzhou.core.message.rabbitmq.config;

import com.jugheadzhou.core.message.rabbitmq.consumer.config.RabbitConsumerConfig;
import com.jugheadzhou.core.message.rabbitmq.producer.config.RabbitProducerConfig;
import com.rabbitmq.client.Channel;
import org.springframework.amqp.rabbit.core.RabbitTemplate;
import org.springframework.boot.autoconfigure.ImportAutoConfiguration;
import org.springframework.boot.autoconfigure.condition.ConditionalOnClass;
import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
import org.springframework.context.annotation.Configuration;

/**
 * @author jugheadzhou
 * @date 2021-12-07
 */
@Configuration(proxyBeanMethods = false)
@ConditionalOnClass({RabbitTemplate.class, Channel.class})
@ConditionalOnProperty(name = "spring.rabbitmq.host")
@ImportAutoConfiguration({RabbitProducerConfig.class, RabbitConsumerConfig.class})
public class RabbitAutoConfiguration {

}
